package org.lionsoul.websnail.task;

import org.lionsoul.websnail.Spider;

/**
 * Factory to generate WebPageTask
 * <p>
 * Add httpclient connection manager
 *
 * @author chenxin<chenxin619315 @ gmail.com>
 */
public class DefaultTaskFactory implements TaskFactory {
    public static DefaultTaskFactory create() {
        return new DefaultTaskFactory();
    }

    @Override
    public DefaultTask createTask(Spider spider, String url) {
        return new DefaultTask(spider, url);
    }

}
